<?php
namespace App\Models;

class Department extends \Baum\Node
{
    const UPDATED_AT ='updatedAt';
    const CREATED_AT = 'createdAt';
    protected $table = 'department';
    protected $parentColumn = 'parentId';
    protected $fillable = ['userId','name'];

    protected $dates = [];

    protected function getDateFormat()
    {
        return time();
    }

}
